<#include "/common/layout_dl.html">
<@header>
</@header>
<@body>
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <h1>
      <small>系统管理 > 用户管理</small>
    </h1>
  </section>
  <!-- Main content -->
  <section class="content">
    <!-- Your Page Content Here -->
    <div class="row">
      <div class="col-xs-12">
        <div class="box">

          <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
              <tr>
                <th  width="100px"><input name="userState" type="checkbox" class="minimal checkbox-toolbar"> 行号</th>
                <th>用户名</th>
                <th>描述</th>
                <th>创建时间</th>
                <th>部门</th>
                <th>状态</th>
                <th width="120px">操作</th>
              </tr>
              <#list list as user>
              	  <tr>
	                <td>
	                   <label>
	                	<input type="checkbox" class="minimal checkbox-item">
	                	${((pageData.current-1)*pageData.size +user_index+1)!}
	                	</label>
	                </td>
	                <td>${(user.userName)!}</td>
	                <td>${(user.userDesc)!'--'}</td>
	                <td>${(user.createTime?string('yyyy/MM/dd HH:mm:ss'))!}</td>
	                <td>${(user.deptName)!'--'}</td>
	                <td><#if user.userState==1>启用<#else><font color="red">禁用</font></#if></td>
	                <td>
						<a class="btn btn-primary btn-xs dialog" href="javascript:" data-url="${base}/system/user/edit/${(user.id)!}" data-title="编辑用户" data-width="850" data-height="550">编辑</a>
	                </td>
	                
	              </tr>
              </#list>
            </table>
          </div><!-- /.box-body -->

        </div><!-- /.box -->
      </div>
    </div>
  </section><!-- /.content -->
</@body>
<@footer>
</@footer>
<script>
	
	layui.use('laydate', function(){
		var laydate = layui.laydate;
		laydate.render({
			 elem: '#birthday',value: '1999-01-01'
		});
		laydate.render({
			 elem: '#startDate'
		});
		laydate.render({
			 elem: '#endDate'
		});
	});
</script>